<?php

if (!defined('TOBBIVM'))
	header('location:/template/notrepassing.php');
/**
 * This file is part of TobbiVMShop.
 *
 * TobbiVMShop is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * TobbiVMShop is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with TobbiVMShop.  If not, see <http://www.gnu.org/licenses/>.
 */

/**
 * Datei: message.class.php
 *
 * At file and database operations message these appear (can) 
 * collect and distribute the different. 
 * if empty = No message availible
 *
 * @author Norbert Gebert
 * @copyright Norbert Gebert 25.09.2011
 * @license GPL3
 *
 * @version 0.5b
 * @package Admin
 * @subpackage global
 */
include_once 'ez_sql_core.php';
include_once 'ez_sql_mysql.php';

class db extends ezSQL_mysql
{
  private static $_instance;
 
  public static function getInstance()
  {
     if( self::$_instance == null )
     {
       self::$_instance = new ezSQL_mysql(DB_USER, DB_PASSWORD, DB_NAME, DB_HOST);
     }
     return self::$_instance;
  }
}

?>